<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
           background-color: #f5f5f5;           
        }
        .div0{
            width: 100px;
            height: 100px;
            background-color: #ccc;
            perspective: 30px;
        }
        .divShadow{
            width: 100px;
            height: 100px;
            background-color: #fff;
            transition: all 0.4s linear 0.1s;
        }
        .divShadow:hover{
            /* box-shadow: 0px 20px 50px rgba(0, 0, 0, .3);
            transform: translateY(-2px); */
            /* transform: translateZ(-30px) rotate(45deg); */
            transform: rotate(45deg) scale(1.2);
        }
    </style>
</head>
<body>
    <div class="div0">
        <div class="divShadow">
            
        </div>
    </div>
</body>
</html>